package com.download.web.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.*;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author cmy
 * @since 2019-02-20
 */
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
@Accessors(chain = true)
public class BusArticle  {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 文章内容
     */
    private String content;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 浏览人数
     */
    private Integer browseNum;

    /**
     * 文章路径
     */
    private String url;

    /**
     * 文章标题
     */
    private String title;

    /**
     * 文章分类
     */
    private Integer type;
    private Integer underType;

    private String metaTitle;

    private String metaKeywords;

    /**
     * 可见类型，1全部可见，2登录可见，购买可见
     */
    private String visibleType;

    private String isRotation;

    private String category;

    private String appImg;
    //网页描述
    private String metaDescribtion;
    private String appName;

    public BusArticle(Integer id, String content, String title, Integer type,Integer underType, String visibleType,
                      String metaTitle,String metaKeywords,String isRotation,String category,String appName,String metaDescribtion) {
        this.id = id;
        this.content = content;
        this.title = title;
        this.type = type;
        this.underType=underType;
        this.visibleType = visibleType;
        this.metaTitle=metaTitle;
        this.metaKeywords=metaKeywords;
        this.isRotation=isRotation;
        this.category=category;
        this.appName=appName;
        this.metaDescribtion=metaDescribtion;
    }

    public BusArticle(Integer id, String content, String title, Integer type,Integer underType, String visibleType,String metaTitle,String metaKeywords,String isRotation,Date createTime,Integer browseNum,String category,String appName,String metaDescribtion) {
        this.id = id;
        this.content = content;
        this.title = title;
        this.type = type;
        this.underType=underType;
        this.visibleType = visibleType;
        this.metaTitle=metaTitle;
        this.metaKeywords=metaKeywords;
        this.isRotation=isRotation;
        this.category=category;
        this.createTime=createTime;
        this.browseNum=browseNum;
        this.appName=appName;
        this.metaDescribtion=metaDescribtion;
    }
}
